package com.cj.designpattern.factory.method;

import java.util.Map;

/**
 * ClassName: MyAbstractMessage <br/>
 * Function: 工厂方法模式_虚拟产品类  <br/>
 * date: 2018/04/27 17:30 <br/>
 *
 * @author chenj
 * @version 1.0.0
 * @since JDK 1.8
 */
public abstract class MyAbstractMessage implements IMyMessage {

    // 这里可以理解为生产产品所需要的原材料库。最好是个自定义的对象，这里为了不引起误解使用Map。
    private Map<String, Object> messageParam;

    @Override
    public Map<String, Object> getMessageParam() {
        return messageParam;
    }

    @Override
    public void setMessageParam(Map<String, Object> messageParam) {
        this.messageParam = messageParam;
    }
}
